package request

type CreateGoodsReq struct {
	UserId      uint32  `json:"user_id" form:"user_id" binding:"required"`
	GoodsName   string  `json:"goods_name" form:"goods_name" binding:"required"`
	GoodsTitle  string  `json:"goods_title" form:"goods_title" binding:"required"`
	GoodsImages string  `json:"goods_images" form:"goods_images" binding:"required"`
	GoodsInfo   string  `json:"goods_info" form:"goods_info" binding:"required"`
	Price       float64 `json:"price" form:"price" binding:"required"`
}
type QueryGoodsReq struct {
	Id uint32 `json:"id" form:"id" binding:"required"`
}
type UpdateGoodsReq struct {
	Id          uint32  `json:"id" form:"id" binding:"required"`
	UserId      uint32  `json:"user_id" form:"user_id" binding:"required"`
	GoodsName   string  `json:"goods_name" form:"goods_name" binding:"required"`
	GoodsTitle  string  `json:"goods_title" form:"goods_title" binding:"required"`
	GoodsImages string  `json:"goods_images" form:"goods_images" binding:"required"`
	GoodsInfo   string  `json:"goods_info" form:"goods_info" binding:"required"`
	Price       float64 `json:"price" form:"price" binding:"required"`
}
type DeleteGoodsReq struct {
	Id uint32 `json:"id" form:"id" binding:"required"`
}
